package app;
import java.awt.BorderLayout;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.WindowConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class AcercaDe extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JLabel imagen;
	/**
	* Auto-generated main method to display this JFrame
	*/
		Icon icon;
		Main m;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JLabel jLabel3;
	private JLabel jLabel2;
	private JLabel jLabel1;
	private JLabel postinga;
	public AcercaDe(Main main) {
		super();
		m=main;
		initGUI();
		
		icon = new ImageIcon(getClass().getResource("acercaDe.png"));
		jLabel5.setText("Agosto 2011 - Compilacion: "+main.getCompilacion());
		imagen.setIcon(icon);
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setIconImage(new ImageIcon(getClass().getClassLoader().getResource("app/postinga16x16.png")).getImage());
			this.setTitle("Acerca de PosT!NGA");
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1, BorderLayout.CENTER);
				jPanel1.setBackground(new java.awt.Color(255,255,255));
				{
					imagen = new JLabel();
					jPanel1.add(imagen);
					imagen.setPreferredSize(new java.awt.Dimension(196, 150));
				}
				{
					postinga = new JLabel();
					jPanel1.add(postinga);
					postinga.setText("PosT!NGA "+m.getVersion());
					postinga.setPreferredSize(new java.awt.Dimension(183, 88));
					postinga.setFont(new java.awt.Font("URW Gothic L",0,24));
				}
				{
					jLabel1 = new JLabel();
					jPanel1.add(jLabel1);
					jLabel1.setText("PosT!NGA es Software Libre licenciado bajo GPL v3");
					jLabel1.setFont(new java.awt.Font("Arial",0,12));
				}
				{
					jLabel2 = new JLabel();
					jPanel1.add(jLabel2);
					jLabel2.setText("Creado por: @Mukenioarg");
					jLabel2.setFont(new java.awt.Font("Arial",0,12));
				}
				{
					jLabel3 = new JLabel();
					jPanel1.add(jLabel3);
					jLabel3.setText("Logo por: @JorgePastor66 y @theProgrammer666");
					jLabel3.setFont(new java.awt.Font("Arial",0,12));
				}
				{
					jLabel4 = new JLabel();
					jPanel1.add(jLabel4);
					jLabel4.setText("Información Web: @Abrahametalero");
					jLabel4.setFont(new java.awt.Font("Arial",0,12));
				}
				{
					jLabel5 = new JLabel();
					jPanel1.add(jLabel5);
					jLabel5.setText("Compilacion");
					jLabel5.setFont(new java.awt.Font("Arial",0,12));
				}
			}
			pack();
			this.setSize(419, 299);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
